package net.wanho.po;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * Author：汤小洋
 * Date：2024-10-25 15:12
 * Description：<描述>
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {

    @Excel(name = "用户id",width = 20, orderNum = "0")
    private Integer id;

    @Excel(name = "用户名",width = 20, orderNum = "1")
    private String name;

    @Excel(name = "用户密码",width = 20, orderNum = "2")
    private String password;

    @Excel(name = "用户电话",width = 30, orderNum = "3")
    private String phone;

    @Excel(name = "用户地址",width = 30, orderNum = "4")
    private String address;

    @Excel(name = "用户生日",width = 30, orderNum = "5",format = "yyyy-MM-dd HH:mm:ss")
    private Date birthday;

    @Excel(name = "用户状态",width = 20, orderNum = "6",replace = {"启用_0", "禁用_1"} )
    private Integer status;
}
